package com.example.conf.teea;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 账户余额变更记录
 * </p>
 *
 * @author wpdcn
 * @since 2020-02-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_account_balance_change_log")
public class SysAccountBalanceChangeLogEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @Column(comment = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 账户id
     */
    @Column(comment = "账户id")
    private Long accountId;

    /**
     * 变更金额
     */
    @Column(comment = "变更金额")
    private Double changeAmt;

    /**
     * 收支类型：1收入；2支出
     */
    @Column(comment = "收支类型：1收入；2支出")
    private String budgetType;

    /**
     * 变更种类：1提现；2充值；3采购
     */
    @Column(comment = "变更种类：1提现；2充值；3采购")
    private String changeType;

    /**
     * 操作人id
     */
    @Column(comment = "操作人id")
    private Long createBy;

    /**
     * 操作时间
     */
    @Column(comment = "操作时间")
    private LocalDateTime createTime;

    /**
     * 订单号
     */
    @Column(comment = "订单号")
    private String orderNo;


}
